module.exports = {
  title: "vben",
  tagline: "vben",
  url: "http://8.153.168.178",
  baseUrl: "/java-doc/",
  onBrokenLinks: "throw",
  onBrokenMarkdownLinks: "warn",
  favicon: "img/favicon.ico",
  organizationName: "vben Co.,Ltd",
  projectName: "vben-java",
  scripts: ["/java-doc/script/baidutongji.js"],
  themeConfig: {
    docs: {
      sidebar: {
        hideable: true,
        autoCollapseCategories: true,
      },
    },
    prism: {
      additionalLanguages: ["powershell", "java", "sql"],
      // theme: require("prism-react-renderer/themes/github"),
      // darkTheme: require("prism-react-renderer/themes/dracula"),
    },
    navbar: {
      title: "vben-java",
      logo: {
        alt: "vben Logo",
        src: "img/vben.png",
      },
      hideOnScroll: true,
      items: [
        {
          to: "docs/guide/xa1",
          activeBasePath: "docs/guide",
          label: "综合导览",
          position: "left",
        },
        {
          to: "docs/modules/sys/ms01",
          activeBasePath: "docs/modules",
          label: "业务模块",
          position: "left",
        },
        {
          to: "docs/common/core/cc01",
          activeBasePath: "docs/common",
          label: "通用模块",
          position: "left",
        },
        // {
        //   to: "docs/whcs/zzbj/wa1",
        //   activeBasePath: "docs/whcs",
        //   label: "应用市场",
        //   position: "right",
        // },
        // {
        //   label: "更新日志",
        //   position: "right",
        //   items: [
        //     {
        //       label: "📝 查看日志（v4.8.7.32）",
        //       href: "/docs/upgrade",
        //     },
        //     {
        //       label: "🚀 路线图",
        //       href: "/docs/target",
        //     },
        //   ],
        // },
        {
          label: "仓库",
          position: "right",
          href: "https://gitee.com/vben/vben-java",
        },
        // {
        //   label: "案例",
        //   position: "right",
        //   to: "docs/case",
        //   activeBasePath: "docs/case",
        // },
        // {
        //   label: "赞助",
        //   position: "right",
        //   to: "docs/donate",
        //   activeBasePath: "docs/donate",
        // },
      ],
    },
    footer: {
      style: "light",
      copyright: `Copyright © ${
          new Date().getFullYear() - 1
      }-${new Date().getFullYear()} vben`,
    },
  },
  presets: [
    [
      "@docusaurus/preset-classic",
      {
        docs: {
          sidebarPath: require.resolve("./sidebars.js"),
          editUrl: "https://gitee.com/vben/vben-doc/blob/master/vben-java",
          showLastUpdateTime: true,
          showLastUpdateAuthor: true,
          // sidebarCollapsible: true,
        },
        theme: {
          customCss: require.resolve("./src/css/custom.css"),
        },
      },
    ],
  ],
  themes: [
    [
      "@easyops-cn/docusaurus-search-local",
      {
        hashed: true,
        language: ["en", "zh"],
        highlightSearchTermsOnTargetPage: true,
        explicitSearchResultPath: true,
      },
    ],
  ],
};
